package com.janj.bean;
//学生类
public class Student {
    private Integer sid ;
    private String sname ;
    private Integer age ;
    private Integer gradeid ;

    private Phone p ;

    public Student() {
    }

    public Student(Integer sid, String sname, Integer age, Integer gradeid, Phone p) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gradeid = gradeid;
        this.p = p;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getGradeid() {
        return gradeid;
    }

    public void setGradeid(Integer gradeid) {
        this.gradeid = gradeid;
    }

    public Phone getP() {
        return p;
    }

    public void setP(Phone p) {
        this.p = p;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                ", gradeid=" + gradeid +
                ", p=" + p +
                '}';
    }
}
